<template>
  <view class="room-address-container">
    <s-progress-bar :width="20" />

    <s-map :options="options" />
    <cover-view class="search-box">
      <cover-view class="box">
        <cover-image class="icon" :src="searchIcon"></cover-image>
        <cover-view class="txt"> 输入地址 </cover-view>
      </cover-view>
    </cover-view>
    <cover-view class="footer-btn">
      <cover-view class="box" @click="onNext">确认</cover-view>
    </cover-view>
  </view>
</template>

<script>
export default {
  name: 'RoomAddress',
  components: {
  },
  data() {
    return {
      searchIcon:'http://cdn.lengnuanit.top/stacy/icon/search-icon.png',
      options: {
        longitude: 113.427923,
        latitude: 23.129499,
        width: '100%',
        height: '100vh',
      },
    };
  },
  methods:{
    onNext(){
        uni.navigateTo({
            url:`/room/information/index`
        })
    }
  }
};
</script>

<style lang="scss" scoped>
.room-address-container {
  widows: 100%;
  .search-box {
    position: fixed;
    padding: 0 48rpx;
    box-sizing: border-box;
    width: 100%;
    top: 40rpx;
    left: 0;
    right: 0;

    .box {
      width: 100%;
      height: 84rpx;
      background: #ffffff;
      box-shadow: 0px 10rpx 20rpx 0px rgba(0, 0, 0, 0.08);
      border-radius: 12rpx;
      display: flex;
      align-items: center;
      padding: 0 33rpx;
      box-sizing: border-box;
      .icon {
        width: 32rpx;
        height: 32rpx;
      }
      .txt {
        margin-left: 37rpx;
        font-size: 28rpx;
        font-family: PingFang;
        font-weight: bold;
        color: #95a0b6;
      }
    }
  }
  .footer-btn {
    position: fixed;
    width: 100%;
    padding: 0 48rpx;
    box-sizing: border-box;
    bottom: 76rpx;
    left: 0;
    right: 0;
    .box {
      width: 100%;
      height: 100rpx;
      border-radius: 16rpx;
      background: linear-gradient(135deg, #0f73ee 0%, #c644fc 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28rpx;
      font-family: PingFang;
      font-weight: bold;
      color: #ffffff;
    }
    .box:active {
      opacity: 0.5;
    }
  }
}
</style>
